<script lang="javascript" src="<?php echo base_url().'/public/ckeditor/ckeditor.js' ?>" type="text/javascript"></script>
<div class="art-postmetadataheader">
    <h2 class="art-postheader" align="center">Thông Tin Liên Hệ</h2>
    <?php if(isset($err)) echo $err?>
    <?php echo $this->session->flashdata('flash_err')?>
    </div>
<div class="art-postcontent art-postcontent-0 clearfix" style="margin: 10px 0 10px 0;">
<?php echo form_open_multipart('lien_he'); ?>
    <table width="745px" border="0" cellspacing="0" cellpadding="5px" align="center" style="box-shadow: none; border: #c7d3d6 1px solid">
    <tr>
    <td width="150px" bgcolor="#c7d3d6">Họ Tên</td>
    <td width="450px" colspan="2">
    <?php 
        $data = array(
        'name' => 'hoten',
        'id' => 'hoten',
        'value' => set_value('hoten',''),
        'style' => 'text-align:center'
        );
        echo form_input($data);
     ?>
    </td>
    <td><?php echo form_error('hoten') ?></td>
    </tr>
    <tr>
    <td bgcolor="#c7d3d6">Email</td>
    <td colspan="3">
    <?php
    $data = array(
    'name' => 'email',
    'id' => 'email',
    'value'=> set_value('email',''),
    'style' => 'text-align:center',
    ); echo form_input($data);
    ?> <?php echo form_error('email') ?>
    </td>
    </tr>
    
    <tr>
    <td width="150px" bgcolor="#c7d3d6">Địa Chỉ</td>
    <td width="450px" colspan="2">
    <?php 
        $data = array(
        'name' => 'diachi',
        'id' => 'diachi',
        'value' => set_value('diachi',''),
        'style' => 'text-align:center'
        );
        echo form_input($data);
     ?>
    </td>
    <td><?php echo form_error('diachi') ?></td>
    </tr>
    
    <tr>
    <td bgcolor="#c7d3d6">Chủ Đề</td>
    <td>
    <?php
    $data = array(
    'name' => 'chude',
    'id' => 'chude',
    'value' => set_value('chude',''),
    'style' => 'text=align:center; width:90%'
    );    
    echo form_input($data);
    echo form_error('chude')
    ?>
    </td>
    </tr>
    
    <tr>
    <td bgcolor="#c7d3d6">Tập Tin</td>
    <td><?php echo form_upload('file') ?></td>
    </tr>   
    
    <tr>
    <td width="150px" bgcolor="#c7d3d6">Nội Dung</td>
    <td width="450px" colspan="2">
    <?php 
        $data = array(
        'name' => 'noidung',
        'id' => 'noidung',
        'value' => set_value('noidung',''),
        'style' => 'text-align:center',
        'class' => 'ckeditor'
        );
        echo form_textarea($data);
     ?>
    </td>
    <td><?php echo form_error('noidung') ?></td>
    </tr>
    
    
    <tr>
    <td bgcolor="#c7d3d6">&nbsp;</td>
    <td colspan="4" align="center">
    <?php
        $data = array(
        'name' => 'lienhe',
        'value' => 'Liên Hệ',
        'class' => 'art-button'
        );
        echo form_submit($data);
        echo '&nbsp';
        $data = array(
        'name' => 'button',
        'onclick' => 'window.location.href=\''.site_url('lien_he').'\'',
        'class' => 'art-button'
        
        );
    echo form_button($data,'Bỏ qua');
    ?>
    
    </td>
    </tr>
    
    
    
    
    
    </table>
<?php echo form_close() ?>
</div>